package com.wyf.test.view;

import android.support.v4.app.FragmentActivity;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;

import com.wyf.test.R;

public class WebTestActivity extends FragmentActivity {

    private WebView webView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_web_test);
        System.out.println("-----------------------");

        webView = (WebView) findViewById(R.id.show);
        WebSettings wSet = webView.getSettings();
        wSet.setDefaultTextEncodingName("utf-8");
        wSet.setJavaScriptEnabled(true);
        webView.loadUrl("file:///android_asset/show/test.html");
    }
}
